package cn.iocoder.yudao.module.wine.controller.admin.businesscredit.vo;

import cn.iocoder.yudao.framework.common.validation.InEnum;
import cn.iocoder.yudao.module.trade.enums.brokerage.BrokerageWithdrawTypeEnum;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.*;

import java.math.BigDecimal;

import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;
import java.util.List;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 会员等级管理分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class BusinessCreditPageReqVO extends PageParam {

    @Schema(description = "信用等级名称", example = "张三")
    private String name;

    @Schema(description = "信用等级")
    private Integer level;

    @Schema(description = "升级经验")
    private Integer experience;

    @Schema(description = "信用等级图标")
    private String icon;

    @Schema(description = "信用等级背景图", example = "https://www.iocoder.cn")
    private String backgroundUrl;

    @Schema(description = "状态", example = "1")
    private Integer status;

    @Schema(description = "金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private BigDecimal price;

    @Schema(description = "保证金制度", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private String institution;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;
    /**
     * 会员功能模块，逗号隔开
     */
    @Schema(description = "功能模块", requiredMode = Schema.RequiredMode.REQUIRED, example = "['a', 'b']")
    private List<String> modular;
}
